﻿<%@ Page Title="" Language="C#" MasterPageFile="~/pagina_maestra_general.master" AutoEventWireup="true" CodeFile="productos.aspx.cs" Inherits="productos" %>

<%-- Agregue aquí los controles de contenido --%>
<asp:Content ID="Content2" ContentPlaceHolderID="area_de_contenidos_general" runat="Server">
    <h3>Nuestros productos son</h3>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
		    ConnectionString="<%$ ConnectionStrings:web_gioman_palletsConnectionString %>" 
		    SelectCommand="select nombre as producto, medida, ruta_a_imagen as img from productos">
	    </asp:SqlDataSource>
	    <asp:GridView ID="grilla_productos" runat="server" AllowPaging="True" 
		    AllowSorting="True" AutoGenerateColumns="False" 
		    BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
		    CellPadding="2" DataSourceID="SqlDataSource1" Font-Names="Times New Roman" 
		    ForeColor="Black" PageSize="3" 
		CssClass="grilla">
		    <AlternatingRowStyle BackColor="PaleGoldenrod" />
		    <Columns>
			    <asp:BoundField DataField="producto" HeaderText="producto" 
				    SortExpression="producto" />
			    <asp:BoundField DataField="medida" HeaderText="medida" 
				    SortExpression="medida" />
			    <asp:ImageField DataImageUrlField="img" DataImageUrlFormatString="{0}" 
				    ReadOnly="True">
			    </asp:ImageField>
		    </Columns>
		    <FooterStyle BackColor="Tan" />
		    <HeaderStyle BackColor="Tan" Font-Bold="True" />
		    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
			    HorizontalAlign="Center" />
		    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
		    <SortedAscendingCellStyle BackColor="#FAFAE7" />
		    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
		    <SortedDescendingCellStyle BackColor="#E1DB9C" />
		    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
	    </asp:GridView>
	
	<p>&nbsp;</p>
</asp:Content>
